package com.bbx.taxi.client.Util;

import com.bbx.api.sdk.model.official.passanger.Return.OrderList.OfficialOrderDetail;

/** 
 * @Path com.bbx.taxi.client.Util.OrderDetialToOrder.java
 * @Author 严旭文
 * @Date 2016-1-20 下午4:57:28
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 * 订单详情转换为一个完整订单，OrderDetial转换为MyOrderList
 */
public class OrderDetialToOrderList {
    /**
     * 订单详情转换为一个完整订单，OrderDetial转换为MyOrderList
     */
//    public static OfficialOrderList onOrderDetialToOrderList(OfficialOrderDetails mOfficialOrderDetails,OfficialOrderList mOfficialOrderList){
//    	if (mOfficialOrderDetails != null) {
//			Details mDetails = mOfficialOrderDetails.getDetails();
//			if (mDetails != null) {
//				mOfficialOrderList.setOrder_time(mDetails.getTime());
//				mOfficialOrderList
//						.setAppoint_time(mDetails.getAppoint_time());
//				mOfficialOrderList.setOrder_type(mDetails.getOrder_type()+"");
//				mOfficialOrderList.setValuate_status(mDetails
//						.getValuate_status());
//				mOfficialOrderList
//						.setOrder_status(mDetails.getOrder_status()+"");
//				mOfficialOrderList.setDriver_name(mDetails.getDriver_name());
//				mOfficialOrderList.setDriver_id(mDetails.getDriver_id());
//				mOfficialOrderList.setDriver_star(mDetails.getDriver_star());
//				mOfficialOrderList
//						.setDriver_phone(mDetails.getDriver_phone());
//				mOfficialOrderList.setStar(mDetails.getStar());
//				mOfficialOrderList.setDiscount(mDetails.getDiscount());
//				mOfficialOrderList.setCar_NO(mDetails.getCar_No());
//				OfficialOrderDetail mOfficialOrderDetail = mOfficialOrderDetails.getDetails()
//						.getOrderDetail();
//				mOfficialOrderList.setOrderDetail(mOfficialOrderDetail);
//			}
//    	}
//		return mOfficialOrderList;
//    }
}
